package com.design.AdapterMode.AdapterDemo;

import com.design.AdapterMode.demo.Filter2;
import com.design.AdapterMode.demo.Word;

public class Adapter2 implements IFilterService{

    private Filter2 filter2 = new Filter2();

    @Override
    public String filter(String word) {
        final Word build = Word.builder().word(word).replace("*").build();
        return filter2.filter(build, "*");
    }
}
